class Warehouse < ActiveRecord::Base
  belongs_to :company
  belongs_to :warehouse_type
  def self.findByName warehouseName
    find(:all,:conditions => ['name like ?','%'+warehouseName+'%'],:include=>[:warehouse_type])
  end
end
